package com.inforich.orderManage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import java.util.Map;
import com.inforich.orderManage.domain.Transport;

/**
 * 运输Service接口
 *
 * @author hjm
 * @date 2022-10-26
 */
public interface ITransportService extends IService<Transport> {

  /**
   * 分页列表
   */
  Page<Transport> pageTransport(Page<Transport> page, Map<String, Object> map);

  /**
   * 列表
   */
  List<Transport> listTransport(Map<String, Object> map);

  /**
   * 根据司机ID查询
   */
  List<Transport> listByBookingIdAndDriverId(String boolkingId, Long driverId);

  Transport getTransportById(String id);

  int insertTransport(Transport transport);

  int updateTransport(Transport transport);

  List<Transport> listByBookingId(String bookingId);
}
